package com.ww.java.reflect;

public class ClassMethodInfo {

	@SuppressWarnings({ "rawtypes", "unused" })
	public static void main(String[] args) {
		Class c = null;
		try {
			c = Class.forName("com.ww.java.reflect.FancyToy");
		} catch (ClassNotFoundException e) {
			System.out.println("类找不到");
			System.exit(1);
		}
	}
	
	@SuppressWarnings("rawtypes")
	static void printInfo(Class cc) {
		System.out.println("Class name:" + cc.getName() + " is interface? [" + cc.isInterface() + "]");
		System.out.println("Simple name:" + cc.getSimpleName());
		System.out.println("Canonical name:" + cc.getCanonicalName());
	}
}

interface HasBatteries {}

interface Waterproof {}

interface Shoots {}

class Toy {
	
	Toy() {}
	
	Toy(int i) {}
}

class FancyToy extends Toy implements HasBatteries, Waterproof, Shoots {
	
	public FancyToy() {
		super(1);
	}
}